package com.sdjzu.university.controller;


import com.sdjzu.university.entity.information;
import com.sdjzu.university.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class InformationController {
    @Autowired
    InformationService informationService;

    @RequestMapping("/selecti")
    public List<information> selectList() {
        return informationService.selectList();
    }

    @RequestMapping("/inserti")
    public int insert(){
        return informationService.insert();
    }

    @RequestMapping("/updatei")
    public int update(){
        return informationService.update();
    }

    @RequestMapping("/deletei")
    public int delete() {return informationService.delete();}







}
